package com.loser.gateway;

import com.loser.gateway.utils.CmdUtils;
import com.loser.module.base.proto.sdk.user.request.UserLogOutReq;
import com.loser.utils.SerializationUtil;
import io.netty.buffer.ByteBuf;

public class test {

    public static void main(String[] args) {
        UserLogOutReq req = new UserLogOutReq();
        req.setUserId(112L);
        req.setPassWord("loser");

        ByteBuf buf = CmdUtils.merge(10003, req);
        CmdUtils.Info info = CmdUtils.split(buf);
        UserLogOutReq userLogOutReq = SerializationUtil.deserializeFromByte(info.getData(), UserLogOutReq.class);
        System.out.println("userLogOutReq = " + userLogOutReq);
    }


}